﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Script.Serialization;
using System.Web.Script.Services;
using System.Web.Services;
using MLM.Base;


namespace MLM.AdminCP.Pages
{
    [ScriptService]
    public partial class ShoppingCart : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public static object AddToCart(long product, long CountProduct, long CountryID, long UserID)
        {
            MLM.ShoppingCart.Instance.AddItem(product, CountProduct, CountryID, UserID);
            return MLM.ShoppingCart.Instance.Items.Count;
        }
    }
}
